//package com.mayikt.config;
//
//import com.baomidou.mybatisplus.core.incrementer.IdentifierGenerator;
//import com.mayikt.utils.SnowflakeIdUtils;
//import org.springframework.beans.factory.annotation.Autowired;
//import org.springframework.stereotype.Component;
//
///**
// * 自定义分布式主键id
// */
//@Component
//public class CustomIdGenerator implements IdentifierGenerator {
//    @Autowired
//    private SnowflakeIdUtils snowflakeIdUtils;
//
//    @Override
//    public Long nextId(Object entity) {
//        return snowflakeIdUtils.nextId();
//    }
//}